/**
 * Copyright 2012 Fonfon.Fenceer
 * All rights reserved.
 * 
 * @project 
 * @author Fonfon.Fenceer
 * @version 1.0
 * @data 2012-3-14
 */
package com.guidecaptain.java.model.vo;

import java.util.List;

import org.springframework.security.authentication.encoding.Md5PasswordEncoder;

import com.guidecaptain.java.model.pojo.User;

/**
 * 
 * @author fenceer
 */
public class UserVO extends User{
	private String code;
	/**
	 * 用户输入明文密码
	 */
	private String password;
	private List<User> userList;
	
	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
		Md5PasswordEncoder encoder=new Md5PasswordEncoder();
		super.setPsw(encoder.encodePassword(password, null));
	}
	
	/**
	 * @return the userList
	 */
	public List<User> getUserList() {
		return userList;
	}
	
	/**
	 * @param userList the userList to set
	 */
	public void setUserList(List<User> userList) {
		this.userList = userList;
	}
	
}
